<extend name="Public/base"/>
<block name="head">
	<link href="__MOBILE__/css/cart.css" rel="stylesheet">
</block>
<block name="body">
<div class="container" >

	<form action="{:U('Buy/submit')}" method="post">
		<div class="row">
			<div class="top-title col-xs-12">
				<span class="active">商品清单</span>
			</div>
			
		</div>
		<div class="row cart-title">
			<h5 class="col-xs-8">商品名称</h5>
			<h5 class="col-xs-2">单价</h5>
			
			<h5 class="col-xs-2">操作</h5>
		</div>
		<volist name="_list" id="vo">
			<div class="row cart-goods">
				<div class="col-xs-8">
					<div class="checkbox goods-img col-xs-5">
					  <label>

					    <img src="{$vo.pic_url|get_image_url}">
					    
					  </label>
					
					</div>
					<div class="goods-title col-xs-7">{$vo.name}</div> 
				</div>
				<div class="col-xs-3 goods-price">
					<div>
						{$vo.price}x{$vo.number}
					</div>
				</div>
				<div class="col-xs-1 ">
					<a href="{:U('Cart/del',array('id'=>$vo['id']))}" class="ajax-get confirm">
						X
					</a>
				</div>
			</div>
		</volist>

		<div class="row box">
			<div class="top-title col-xs-12">
				<span class="active">收货地址</span>
				<a href="{:U('User/address')}">管理收货地址</a>
			</div>
		
			<div class="contents col-xs-12">	
				<volist name="user_address" id="vo">
					<div class="item">
						<input type="radio" name="address_id" <eq name="vo.status" value="1">checked="checked"</eq>value="{$vo.id}">
						{$vo.consignee}
						{$vo.mobile}
			 		
				 		{$vo.province|get_district_name}{$vo.city|get_district_name}{$vo.district|get_district_name}{$vo.community|get_district_name}
				 		{$vo.address}
				 	</div>
				</volist>
				
	   		</div>
		</div>
		<div class="row cart-total">
			<div class="col-xs-12">
				<span class="total">合计:{$total.score}积分+￥{$total.total|}</span>
				<button type="submit" class="btn btn-blue btn-lg">提交订单</button>
			</div>
		</div>
	</form>
</div>
</block>
<block name="script">
<script>
	function showAddressList(){
		url="{:U('User/ajaxAddressList')}";
		$.post(url).success(function(data){
			$('#message .alert-content').html(data);
		});
	}
	</script>
</block>

